home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / datatypes / aiffdt / source / data.h < prev    next >
C/C++ Source or Header  |  1996-04-07  |  1KB  |  42 lines

  1. /*
  2. **    AIFF DataType
  3. **
  4. **    Written by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  5. **        Public domain
  6. **
  7. ** :ts=4
  8. */
  9.  
  10.     // Our custom library structure
  11.  
  12. struct ClassBase
  13. {
  14.     struct Library             LibNode;            // Exec link
  15.  
  16.     struct ExecBase            *SysBase;            // Exec library
  17.     struct DosLibrary        *DOSBase;            // Dos library
  18.     struct Library            *IntuitionBase,        // Intuition library
  19.                             *UtilityBase,        // Utility library
  20.                             *IFFParseBase,        // IFFParse library
  21.                             *DataTypesBase,        // DataTypes library
  22.                             *SuperClassBase;    // Sound datatype
  23.     struct SignalSemaphore     LockSemaphore;        // Shared access semaphore
  24.     Class                    *SoundClass;        // The class this library implemnts
  25.     BPTR                     Segment;            // Library segment pointer
  26.     struct Hook                 AsyncHook;            // IFFHandle I/O hook
  27. };
  28.  
  29.     // Redirect references to global data into the library base
  30.  
  31. #define SysBase            ClassBase -> SysBase
  32. #define DOSBase            ClassBase -> DOSBase
  33. #define IntuitionBase    ClassBase -> IntuitionBase
  34. #define UtilityBase        ClassBase -> UtilityBase
  35. #define IFFParseBase    ClassBase -> IFFParseBase
  36. #define DataTypesBase    ClassBase -> DataTypesBase
  37. #define SuperClassBase    ClassBase -> SuperClassBase
  38. #define LockSemaphore    ClassBase -> LockSemaphore
  39. #define SoundClass        ClassBase -> SoundClass
  40. #define Segment            ClassBase -> Segment
  41. #define AsyncHook        ClassBase -> AsyncHook
  42.